export default {
  namespaced: true,
  state() {
    return {
      loading: true,
      listShow: true,
      tabbar: true,
      movieInfo: {},
      active: 0
    }
  },
  mutations: {
    loadingUpdate(state, boolean) {
      state.loading = boolean
    },
    listShowCut(state, boolean) {
      state.listShow = boolean
    },
    tabbarCut(state, boolean) {
      state.tabbar = boolean
    },
    movieInfoUpdate(state, obj) {
      state.movieInfo = obj
    },
    activeUpdate(state, num) {
      state.active = num
    }
  }
}
